using FU.Capstones.IMS.Web.Common.InventoryServiceProxy.OperationContracts;

namespace FU.Capstones.IMS.Web.Silverlight.Models
{
    public abstract class ModelBase
    {
        protected InventoryServiceClient client=new InventoryServiceClient();

        public void SetClientCredentials(string username, string password)
        {
            if (client != null && client.ClientCredentials != null)
            {
                client.ClientCredentials.UserName.UserName = username;
                client.ClientCredentials.UserName.Password = password;
            }
        }
    }
}